home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / rot / rota.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  5.9 KB  |  117 lines

  1.  
  2.           AnfyRotate 2.1 - Copyright (C) by Fabio Ciucci 1996/98
  3.  
  4.  
  5. This applet can zoom and rotate (eventually distorted) any GIF or JPG image,
  6. the only requirement is that this image must be large equally to one of
  7. the powers of 2 (64x64 pixel, or 32x64, 128x128, ...).
  8. Remember that are needed both Rot2.class , Lware.class and anfy.class.
  9. You must upload these 3 .class files and insert the <applet> tag on your
  10. html document to add this applet to your page.
  11. This applet is fully parametrized, so you can generate all kinds of rotators
  12. you want. Here an example of what you have to write in the html (the
  13. things anfter the ; are comments with min-max values acceptet):
  14.  
  15.  
  16. <applet code="Rot2.class" width=150 height=150> ; Name, Width, Height
  17. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  18. <param name=regcode value="NO">         ; Register code (if you have it)
  19. <param name=reglink value="NO">         ; URL where go optionally when clicked
  20. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  21. <param name=regframename value="_blank"> ; Name of new frame for reglink
  22. <param name=statusmsg value="Rotator applet">  ; Statusbar message
  23. <param name=image value="img64n1.GIF">          ; Image to load
  24. <param name=res value="1">                      ; resolution (1-8)
  25. <param name=rotmode value="6">                  ; mode (1-6)
  26. <param name=rspeed value="2">                   ; rotation speed (1-8)
  27. <param name=zoommin value="4">                  ; zoom min value (0-80)
  28. <param name=zoommax value="25">                 ; zoom max value (0-80)
  29. <param name=zoomspd value="4">                  ; zoom speed (1-20)
  30. <param name=modix value="1">                    ; distort modify x (0-8)
  31. <param name=modiy value="2">                    ; distort modify y (0-8)
  32. <param name=auto1 value="100">                  ; auto wait 1 (0-10000)
  33. <param name=auto2 value="230">                  ; auto wait 2 (0-10000)
  34. <param name=textscroll value="rotscr.txt">  ; File for scrolltext or "NO"
  35. <param name=textoffset value="140">         ; Txtscroll y offset
  36. <param name=textspeed value="1">          ; Txtscroll speed
  37. <param name=textfont value="Arial">       ; Txtscroll font name
  38. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  39. <param name=textsize value="24">          ; Txtscroll font size
  40. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  41. <param name=TextColR value="200">         ; Txtscroll color (red component)
  42. <param name=TextColG value="255">         ; Txtscroll color (green component)
  43. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  44. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  45. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  46. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  47. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  48. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  49. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  50. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  51. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel  
  52. <param name=memdelay value="1000">        ; Memory deallocation delay
  53. <param name=priority value="3">           ; Task priority (1..10)
  54. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  55. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  56. </applet>                                 ; End of applet tag
  57.  
  58.                              ---------
  59.  
  60.  
  61. Here detailed instructions about how to change parameters:
  62.  
  63.  
  64. The credits parameter can't be changed otherwise the applet will not work.
  65.  
  66. To activate the reg parameters read the shareware registration notes.
  67. In the "regcode" parameter you have to place the registration code you
  68. purchase from the author. If it is correct and the applet is run from the
  69. registered domain name, you can use "reglink" parameter, where you can specify
  70. an URL where bring user when the applet is clicked.
  71. If you set to "YES" regnewframe, you can specify a frame where load the
  72. reglink:
  73.  
  74. "_blank"  : To load the link in a new blank unnamed browser window.
  75. "_self"   : To load the link into the same window the applet occupies.
  76. "_parent" : To load the link into the immediate FRAMESET parent.
  77. "_top"    : To load the link into the top body of the window.
  78.  
  79. Otherwise the frame name, for example "myframe1".
  80.  
  81. The image must be large equally to one of the powers of 2 (64x64
  82. pixel, or 32x64, 128x128, ...)., GIF or JPG format.
  83. Valid sizes, for example, are 8*8, 8*16, 8*32, 16*32, 32*16, 32*32, 64*64,
  84. 64*32, 128*32, 128*64, 32*128, 128*128, 256*128...
  85.  
  86. The size of the applet is determined by width and height tags, and can be
  87. different from the size of the image, offcourse.
  88.  
  89. The res parameter determine the resolution: with res=1 pixels are small,
  90. but effect is slow, with res=8 pixels are too great but effect is faster.
  91. I think the best choices are 1-3.
  92.  
  93. Rotmode is the mode of running. Here the modes:
  94.  
  95. 1) Zoom and Rotate
  96. 2) Rotate only
  97. 3) Zoom only
  98. 4) Distort only
  99. 5) Zoom and Distort
  100. 6) Automatic show: ZoomOnly, then Zoom&Rotate, then Zoom&Distort
  101.  
  102. Offcouse you can control the speed of rotation wirh rspeed, the min value
  103. and max value for zoom (when change zoom direction) with zoommin and zoommax,
  104. and offcourse the speed of zoom with zoomspd.
  105.  
  106. You can also determine the distort factors: modix for X axis and modiy for
  107. the Y axis.
  108.  
  109. Finally, you can decide the timing of mode 6 (automatic show): auto1 is the
  110. time to wait before swap between zoom and zoom&rotate, and auto2 is used
  111. to wait the other swap, from zoom&rotate to zoom&distort.
  112. Offcouse swap2 must be >= swap1. If swap1=0 then you skip Zoom and start
  113. directly with Zoom&rotate. If swap1=swap2 you skip Zoom&Rotate, jumping
  114. from zoom only to distort&rotate, and so on....
  115.  
  116.  
  117.